using System;
using System.ServiceProcess;
namespace Lcygcc.WindowService.Host
{
    internal static class Program
    {
        private static void Main(string[] args)
        {
#if DEBUG
            //ServiceManage.Start();
            //while (true)
            //{ }
#endif

            /// #if Debug         
            if (args == null || args.Length <= 0)
            {
                ServiceBase[] services = new ServiceBase[]
                      {
                        new Service()
                      };
                ServiceBase.Run(services);
                return;
            }
            if (args[0].Equals("-c", StringComparison.OrdinalIgnoreCase))
            {
                ServiceManage.Start();

                while (true)
                {
                    Console.WriteLine("1--增加用户 2--删除用户 3--获取所有有用户 4--下载所有用户 ");
                    string text = Console.ReadLine();
                }
            }

        }
    }
}
